trinity matrix